#include <iostream>
#include <vector>
#include <string>

int main() {
    std::vector<std::string> missing_repos = {
        "Catch", "zlib", "libpng", "libexpat", "libtiff", 
        "libjpeg-turbo", "pcre", "nanosvg", "libwebp"
    };
    
    std::cout << "🚀 开始创建缺失的镜像仓库..." << std::endl;
    
    for (const auto& repo : missing_repos) {
        std::cout << "📦 创建: " << repo << " ... ";
        
        // 使用 curl 创建仓库
        std::string command = "curl -X POST \"https://gitee.com/api/v5/user/repos\" "
                             "-H \"Content-Type: application/json\" "
                             "-d \"{\\\"name\\\":\\\"" + repo + "\\\",\\\"description\\\":\\\"Mirror repository\\\",\\\"public\\\":true}\"";
        
        int result = system(command.c_str());
        
        if (result == 0) {
            std::cout << "✅ 成功" << std::endl;
        } else {
            std::cout << "❌ 失败" << std::endl;
        }
    }
    
    std::cout << "✨ 创建完成" << std::endl;
    return 0;
}
